package ldh.serialize.io;

/**
 * Created by ldh on 2016/10/23.
 */
public class ByteBufFactory {

    public static ByteBuf buffer(int size) {
        return new ByteBuf(size);
    }

    public static ByteBuf wrappedBuffer(byte[] bytes) {
        return new ByteBuf(bytes);
    }
}
